package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 售后单表
 * </p>
 *
 * @author 小飞
 * @since 2019-07-10
 */
@TableName("after_indent_order")
public class AfterIndentOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联售后采购单表
     */
    @TableField("after_indent_id")
    private String afterIndentId;

    /**
     * 操作人id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 售后单单号
     */
    @TableField("after_sale_num")
    private String afterSaleNum;

    /**
     * 创建时间
     */
    @TableField("time")
    private Date time;

    /**
     * 1.待审核,2.审核失败3.审核成功，3.退回
     */
    @TableField("after_status")
    private Integer afterStatus;

    /**
     * 1.维修 2，退货
     */
    @TableField("type")
    private Integer type;

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    @TableField("process_instance_id")
    private String processInstanceId;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAfterIndentId() {
        return afterIndentId;
    }

    public void setAfterIndentId(String afterIndentId) {
        this.afterIndentId = afterIndentId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAfterSaleNum() {
        return afterSaleNum;
    }

    public void setAfterSaleNum(String afterSaleNum) {
        this.afterSaleNum = afterSaleNum;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getAfterStatus() {
        return afterStatus;
    }

    public void setAfterStatus(Integer afterStatus) {
        this.afterStatus = afterStatus;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "AfterIndentOrder{" +
        "id=" + id +
        ", afterIndentId=" + afterIndentId +
        ", userId=" + userId +
        ", afterSaleNum=" + afterSaleNum +
        ", time=" + time +
        ", status="  +
        ", type=" + type +
        "}";
    }
}
